FROM openjdk:22-slim as base

LABEL maintainer="Kengwang <docker@kengwang.com.cn>"

COPY build/scripts/http /app/bin/http
RUN chmod +x /app/bin/http
COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh

COPY build/dist/lib/ /app/lib/

ARG VERSION=8.9.63
COPY build/dist/txlib/${VERSION}/ /txlib/

EXPOSE 8080
VOLUME [ "/txlib/qsign.json" ]

ENTRYPOINT [ "/docker-entrypoint.sh" ]